import java.util.Arrays;

public class J09buqueding {
    public static void main(String[] args) {
        sum(1,2);
        sum(1,2,3);
        sum(1,2,3,4);


        f2("aa");
    }

    public static void sum(int... arr){
//        System.out.println(arr);
//        System.out.println(arr.length);
//        System.out.println(Arrays.toString(arr));
        //丹王 - 古河
        int he = 0;
        for (int i = 0; i < arr.length; i++) {
            he += arr[i];
        }
        System.out.println("he = " + he);
    }

    public static void f2(String x,int... arr1){

    }
    public static void f2(String x,char c1,int... arr1){

    }
}
